package tolgahan.albayrak.as3.reflection
{
	public class ConstantInfo extends TypedMemberInfo
	{
		private var _value:*;
		
		public function ConstantInfo(xml:XML, baseType:Type, memberIndex:uint)
		{
			super(xml, baseType, memberIndex);
			_value = _baseType.classReference[_name];
		}
		
		public function get value():*
		{
			return _value;
		}
		
		public function toString():String
		{
			return "public static const " + _name + ":" + _type + " = " + _value;
		}
	}
}